#include "heap.h"

int main()
{
	hp hp1;
	HeapInit(&hp1);

	HeapPush(&hp1, 20);
	HeapPush(&hp1, 1);
	HeapPush(&hp1, 22);
	HeapPush(&hp1, 25);
	HeapPush(&hp1, 30);
	HeapPush(&hp1, 45);

	while (!HeapEmpty(&hp1))
	{
		printf("%d ", HeapTop(&hp1));
		HeapPop(&hp1);
	}
	HeapDestroy(&hp1);

	return 0;
}
